package systemEntity

import "github.com/goravel/framework/database/orm"

type Permission struct {
	orm.Model
	PID      uint         `gorm:"column:pid;default:null" json:"pid" form:"pid"`
	Code     string       `gorm:"column:code;type:varchar(255);not null" form:"code" json:"code"`
	Label    string       `gorm:"column:label" form:"label" json:"label"`
	Type     string       `gorm:"column:type" form:"type" json:"type"`
	Children []Permission `gorm:"foreignkey:PID" form:"children" json:"children"` // 子权限
	orm.SoftDeletes
}
